<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>业务留言 - 鸿升冠腾科技</title>
    <link rel="stylesheet" href="/assets/css/main.css?v=4">
    <script src="/assets/js/common-components.js" defer></script>
    <script src="/assets/js/cyber-effects.js"></script>
    <style>
        .page-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: #f9f9f9;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .form-group {
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }
        input, select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--light-gray);
            border-radius: 4px;
            font-size: 16px;
        }
        textarea {
            height: 150px;
            resize: vertical;
        }
        .contact-form input[type="submit"] {
            background-color: var(--primary-color);
            /* transition: background-color 0.3s; */
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .submit-btn:hover {
            background-color: #0d47a1;
        }
        .form-feedback {
            margin-top: 20px;
            padding: 15px;
            border-radius: 4px;
            display: none;
        }
        .success {
            background-color: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #c8e6c9;
        }
        .error {
            background-color: #ffebee;
            color: #c62828;
            border: 1px solid #ffcdd2;
        }
        .required-mark {
            color: #c62828;
        }
    </style>
</head>
<body>
    <header>
        <!-- Header content will be populated by JavaScript -->
    </header>
    <main>
        <section class="contact-form">
            <div class="container">
                <h1 data-i18n="contact.form_heading">业务留言</h1>
                <div class="page-container">
                    <form id="business-inquiry-form">
                        <div class="form-section">
                            <h2 data-i18n="contact.basic_info">基本信息</h2>
                            <div class="form-group">
                                <label for="name" data-i18n="contact.name">姓名 <span class="required-mark">*</span></label>
                                <input type="text" id="name" name="name" required>
                            </div>
                            <div class="form-group">
                                <label for="contact" data-i18n="contact.contact_info">联系方式（电话/邮箱） <span class="required-mark">*</span></label>
                                <input type="text" id="contact" name="contact" required placeholder="请输入电话或邮箱">
                            </div>
                            <div class="form-group">
                                <label for="company" data-i18n="contact.company">公司名称（可选）</label>
                                <input type="text" id="company" name="company">
                            </div>
                        </div>

                        <div class="form-section">
                            <h2>业务需求</h2>
                            <div class="form-group">
                                <label for="service-type" data-i18n="contact.service_type">选择服务类型 <span class="required-mark">*</span></label>
                                <select id="service-type" name="service-type" required>
                                    <option value="">请选择服务类型</option>
                                    <option value="vtb-account">VTB开户</option>
                                    <option value="china-russia-payment">中俄收付款</option>
                                    <option value="global-payment">全球收付款</option>
                                    <option value="other">其他服务</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="message">具体需求描述 <span class="required-mark">*</span></label>
                                <textarea id="message" name="message" required></textarea>
                            </div>
                            <div class="form-group">
                                <label for="attachment">附件上传（可选）</label>
                                <input type="file" id="attachment" name="attachment" accept=".pdf,.doc,.docx,.jpg,.jpeg,.png">
                                <small>支持格式：PDF, Word, JPG (最大5MB)</small>
                            </div>
                        </div>

                        <button type="submit" class="submit-btn">提交留言</button>
                        <div id="form-success" class="form-feedback success">
                            <h3>提交成功！</h3>
                            <p>感谢您的留言，我们将在1-2个工作日内与您联系。</p>
                            <p>紧急联系：+86 21 20528088（工作日 9:00-18:00）</p>
                        </div>
                        <div id="form-error" class="form-feedback error">
                            <h3>提交失败</h3>
                            <p>请检查表单填写是否完整正确，或稍后重试。</p>
                        </div>
                    </form>
                </div>
            </div>
        </section>
        <section class="banner">
            <div class="container">
                <h1 data-i18n="contact.banner.title">业务留言</h1>
            </div>
        </section>
        <section class="core-services">
            <div class="container">
                <h2 data-i18n="contact.services.title">联系服务</h2>
                <!-- 服务内容 -->
            </div>
        </section>
    </main>
    <footer>
        <!-- Footer content will be populated by JavaScript -->
    </footer>
    <script src="/assets/js/language-switcher.js"></script>
    <!-- 删除cyber-effects脚本 -->
    <script src="/assets/js/common-components.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const form = document.getElementById('business-inquiry-form');
            const successMessage = document.getElementById('form-success');
            const errorMessage = document.getElementById('form-error');

            form.addEventListener('submit', function(e) {
                e.preventDefault();
                // In a real implementation, this would send data to a server
                // For demo purposes, we'll just show the success message
                try {
                    // Simulate form submission
                    setTimeout(() => {
                        successMessage.style.display = 'block';
                        errorMessage.style.display = 'none';
                        form.reset();
                        // Hide message after 5 seconds
                        setTimeout(() => {
                            successMessage.style.display = 'none';
                        }, 5000);
                    }, 1000);
                } catch (error) {
                    successMessage.style.display = 'none';
                    errorMessage.style.display = 'block';
                }
            });
        });
    </script>
</body>
</html>